package org.javaymw.springboot.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * 描述：
 * <p>
 * Author: 赵新国
 * Date: 2017/11/10 17:14
 */
@Controller
public class IndexController {

    /**
     * 首页
     * @return
     */
    @RequestMapping("/")
    public String index(Map<String,Object> map) {
        map.put("name", "[Angel -- 守护天使]");
        return "front/index";
    }

    /**
     * 源码
     * @return
     */
    @RequestMapping("/source.html")
    public String source(Map<String,Object> map) {
        map.put("name", "[Angel -- 守护天使]");
        return "front/source";
    }

    /**
     * 博客
     * @return
     */
    @RequestMapping("/blog.html")
    public String project(Map<String,Object> map) {
        map.put("name", "[Angel -- 守护天使]");
        return "front/blog";
    }

    /**
     * 问答
     * @return
     */
    @RequestMapping("/ask.html")
    public String ask(Map<String,Object> map) {
        map.put("name", "[Angel -- 守护天使]");
        return "front/ask";
    }
}
